﻿using Zdap.Common;
using Zdap.XCode;

namespace Datav.Design.IService
{
    /// <summary>
    ///
    /// </summary>
    public interface IProjectComsService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="currentUser"></param>
        /// <returns></returns>
        ValueTask<ResponseContext<ComsModelDto>> Copy(long Id, UserTicket currentUser);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="dto"></param>
        /// <param name="user"></param>
        /// <returns></returns>
        ValueTask<ResponseContext<long>> Save(ComsModelDto dto, UserTicket user);


        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ValueTask<ResponseContext<List<long>>> BatchSave(SavaListModel<ComsModelDto> model, UserTicket user);
    }
}